#ifndef E6ANA2_H
#define E6ANA2_H

#include "base/EvtData.h"
#include "base/Analysis.h"
#include <vector>

#define MW 80.0
#define MZ 91.1
#define sg_MW 20
#define sg_MZ 8
#define w_De 40

struct evt_configuration{
  unsigned short int iW1;//Wconstitent1 
  unsigned short int iW2;//Wconstituent2
  unsigned short int ipr1;
  unsigned short int ipr2;
  unsigned short int iZ1;
  unsigned short int iZ2;
  double mDe;
  double deltaM;
  double chi2;
};


class E6ANA2 : public Analysis{

public :
  E6ANA2();
  virtual ~E6ANA2();
  virtual void Execute();
  std::vector<evt_configuration> all_cfg;
  static bool chi2Min(evt_configuration,evt_configuration);
  
};

#endif
